package 原型模式.深复制;


import java.util.ArrayList;

public class Test {
    public static void main(String[] args) {
        User user = new User();
        user.setEmail("ss");
        user.setPassword("ppdas");
        user.setUserName("ddd");
        User friend = new User();
        friend.setUserName("跑分");
        user.setFriend(friend);
        user.setScore(1);
        User user2 = (User) user.cloneI();
        user.setFriend(null);
        System.out.println(user2);
    }
}
